Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit e6a4ab919a317b92e38dc3bd32f5c9b3e3b3576f


Parents : f8a84cf
Author : Mark Qvist <mark@unsigned.io>
Date : 2025-11-26T19:04:22+01:00

Fix codec2 decode target rate

Changes

1 files changed, 1 insertions(+), 3 deletions(-)

M sbapp/main.py +1 -3

Diff

diff --git a/sbapp/main.py b/sbapp/main.py
index 4034c9ca..ce0e7c94 100644
--- a/sbapp/main.py
+++ b/sbapp/main.py
@@ -2427,9 +2427,7 @@ class SidebandApp(MDApp):
temp_path = self.sideband.rec_cache+"/msg.ogg"
from sideband.audioproc import samples_to_ogg, decode_codec2, detect_codec2
- target_rate = 8000
- if RNS.vendor.platformutils.is_linux(): target_rate = 48000
-
+ target_rate = 48000
if detect_codec2():
if samples_to_ogg(decode_codec2(audio_field[1], audio_field[0]), temp_path, input_rate=8000, output_rate=target_rate): RNS.log("Wrote OGG file to: "+temp_path, RNS.LOG_DEBUG)
else: RNS.log("OGG write failed", RNS.LOG_DEBUG)


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────